﻿using System;
using System.Web.UI;

namespace HelpersDotNet.Web.UI
{
    public class IncludeJsLoadingControl : Control
    {
        protected override void OnPreRender(EventArgs e)
        {
            Page.ClientScript.RegisterClientScriptInclude("loading",
               Page.ClientScript.GetWebResourceUrl(GetType(),
               WebResourcesList.LoadingJsScript));

            base.OnPreRender(e);
        }
    }
}